package kotlin05.src.main.java.com.example.kotlin05.s04;


/**
 * kotlin 与 java 互操作性与可空性
 *
 * T! 平台空字符
 */

public class JavaUse1 {

    private int hitPoint = 577232;
    
     public String sayHello(){
         return "java: say hello";
     }
     
     public String sayNull(){
         return null;
     }


    public int getHitPoint() {
        System.out.println("=======getHitPoint==========");
        return hitPoint;
    }

    public void setHitPoint(int hitPoint) {
        System.out.println("===========setHitPoint================");
        this.hitPoint = hitPoint;
    }


    public static void main(String[] args) {

        //TODO：调用kotlin函数 写在外部的函数，可以以静态形式调用
        //TODO:这里调用的是通过JvmName修改过的名字 KJTest
        System.out.println(KJTest.makeFun());

    }


}
